package com.kuaiyin.vo;

import com.baomidou.mybatisplus.annotation.TableName;
import com.kuaiyin.sampling.BaseVo;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Map;

@EqualsAndHashCode(callSuper = true)
@Data
@TableName(value = "request", autoResultMap = true)
@Schema(name = "RequestVO", description = "请求详情响应")
public class RequestVO extends BaseVo implements Serializable {

    @Schema(description = "请求ID", example = "1")
    private Long id;

    @Schema(description = "请求名称", example = "查询用户接口")
    private String name;

    @Schema(description = "接口路径", example = "/api/v1/users/{id}")
    private String path;

    @Schema(description = "HTTP方法", example = "GET")
    private String method;

    @Schema(description = "请求头（JSON格式）")
    private Map<String, Object> headers;

    @Schema(description = "查询参数（JSON格式）", example = "{\"page\":1}")
    private Map<String, Object> params;

    @Schema(description = "请求体（JSON格式）")
    private Map<String, Object> body;

    @Schema(description = "接口描述", example = "用户相关接口定义")
    private String description;

}